home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
223_01
/
rename.c
< prev
next >
Wrap
Text File
|
1980-01-01
|
512b
|
21 lines
/*
** rename(old,new) char *old, *new; by F.A.Scacchitti 9/11/84
*/
#define NOCCARGC
#include <stdio.h>
static int fcbloc;
rename(old,new) char *old, *new; {
if ((fcbloc = grabio()) == NULL) return(ERR);
fcb(fcbloc, old);
fcb(fcbloc + 16, new);
freeio(fcbloc);
if(bdos(23,fcbloc) >= 0) return(NULL);
return(ERR);
}